package com.zhang.zhangapp.bean.user;

/**
 * Created by Administrator on 2018/4/23.
 */

public class BillItem {
    private String realAmount;
    private String transResult;
    private String proList;
    private String title;


    public String getRealAmount() {
        return realAmount;
    }

    public void setRealAmount(String realAmount) {
        this.realAmount = realAmount;
    }

    public String getRelAmoountStr() {
        if (realAmount == null || realAmount.equals(""))
            return "";
        return realAmount + "元";
    }

    public String getTransResult() {
        return transResult;
    }

    public void setTransResult(String transResult) {
        this.transResult = transResult;
    }

    public String getProList() {
        return proList;
    }

    public String getProStr() {
        if (proList == null)
            return "";
        return proList.replace("~", " ").replace(",", " ");
    }

    public void setProList(String proList) {
        this.proList = proList;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getDoubleRealAmount() {
        try {
            return Double.valueOf(realAmount);
        } catch (Exception e) {

        }
        return 0;
    }
}
